package com.qding.park.manager.pojo.enums;

/**
 * @ClassName VisitPurposeEnum
 * @Description TODO(来访目的枚举)
 * @author Administrator
 * @Date 2016年8月26日 下午12:57:39
 * @version 1.0.0
 */
public enum VisitPurposeEnum {
	
	FRIEND_VISIT(0,"朋友"),
	HOUSEKEEP_VISIT(1,"家政"),
	DECORATE_VISIT(2,"装修"),
	DELIVER_VISIT(3,"送货"),
	HOUSE_MOVING_VISIT(4,"搬家"),
	INTERMEDIARY_VISIT(5,"中介");
	
	
	private int code;
	
	private String desc;
	
	private VisitPurposeEnum(int code,String desc){
		this.code=code;
		this.desc=desc;
	}

	public static String tranDesc(int code){
		
		if(code==FRIEND_VISIT.getCode()){
			return "朋友";
		}else if(code==HOUSEKEEP_VISIT.getCode()){
			return "家政";
		}else if(code==DECORATE_VISIT.getCode()){
			return "装修";
		}else if(code==DELIVER_VISIT.getCode()){
			return "送货";
		}else if(code==HOUSE_MOVING_VISIT.getCode()){
			return "搬家";
		}else if(code==INTERMEDIARY_VISIT.getCode()){
			return "中介";
		}else{
			return "未知";
		}
	}
	
	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	
	
}
